<template>
    <el-card class="box-card1">
        <div class="box">
            <div class="boxRig">
                <div class="rigthTop header-container">
                    <!-- 缓存页右侧上 -->
                    <div class="header-tab-item hoverable active">
                        <span class="title">资源</span>
                    </div>
                    <div class="header-tab-item hoverable">
                        <span class="title">视频课</span>
                    </div>
                    <div class="header-tab-item hoverable">
                        <span class="title">直播课</span>
                    </div>
                </div>
                <div class="rigthBot">
                    <!-- 缓存页右侧下 -->
                    <div class="borBot">
                        <div class="search-container">
                            <div class="search-input el-input">
                                <el-input class="inpCls" :prefix-icon="Search" />
                            </div>
                            <div class="search-button">搜索</div>
                        </div>
                        <div class="noContent">
                            <span class="el-table__empty-text">无更多内容</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </el-card>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { Search } from "@element-plus/icons-vue";

export default defineComponent({
    name: "MediaCache",
});
</script>

<script setup lang="ts"></script>

<style lang="less">
.box-card1 {
    // border-radius: 4px;
    height: 96px;
    margin-top: 10px;
    // width: 1016px;
}
.box {
    display: flex;
    margin: 15px 50px;
    background-color: papayawhip;
}
.rigthTop {
    // padding: 28px 30px;
    border-radius: 4px;
    // background-color: #fff;
    margin-bottom: 10px;
    display: flex;
    // justify-content: space-between;
    align-items: center;
    background-color: powderblue;
}
.rigthBot {
    width: 1020px;
    height: 730px;
    background-color: skyblue;
    position: relative;
}
.header-container {
    border-radius: 4px;
    //保留，最后打开
    // background-color: #fff;
    background-color: pink;
    // position: relative;
}
.header-container .header-tab-item.hoverable {
    cursor: pointer;
}
.header-container .header-tab-item {
    padding: 28px 30px;
    color: #111;
    font-size: 14px;
    position: relative;
}
.header-container .header-tab-item.active:after,
.header-container .header-tab-item.hoverable:hover:after {
    background-color: #f93684;
}
.header-tab-item:after {
    position: absolute;
    content: " ";
    background-color: #fff;
    height: 4px;
    width: 37px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s ease;
}
.search-container {
    display: inline-block;
    white-space: nowrap;
}
.inpCls {
    width: 270px;
    height: 40px;
    background-color: #f9f5f8;
    border-color: #eaecf0;
}
.search-container .search-button {
    background: #f5f7f9;
    border-radius: 4px;
    color: #7d8090;
    font-size: 14px;
    display: inline-block;
    padding: 12px 17px;
    margin-left: -20px;
    cursor: pointer;
}
.noContent {
    width: 963px;
    max-height: 60px;
    text-align: center;
    // width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.borBot {
    padding: 10px;
    border-bottom: 1px solid #7d8090;
}
.el-table__empty-text {
    width: 50%;
    color: #909399;
    font-size: 12px;
}
</style>
